@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: url(../Sass-音乐播放器素材/images/bg.jpg) repeat;
  background-size: 100% 100%;
}

/* 播放器 */
.player {
  width: 900px;
  height: 600px;
  background: #1eacda;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  /* 播放器头部 */
  /* 播放器中间内容的容器 */
  /* 播放器状态栏 */
}

.player .player-nav {
  height: 57px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 30px;
  padding-right: 20px;
  /* 搜索框 */
}

.player .player-nav p {
  color: white;
  font-size: 20px;
}

.player .player-nav .search {
  width: 300px;
  height: 30px;
  border-radius: 20px;
  background: #83d1eb;
  padding-left: 25px;
  padding-right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player .player-nav .search input {
  border: none;
  width: 300px;
  height: 20px;
  background: #83d1eb;
  outline: none;
}

.player .player-container {
  height: 493px;
  background: #e8cdac;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  /* 左右整体样式 */
  /* 左边内容区域样式 */
  /* 右边内容样式 */
  /* 中间内容样式 */
}

.player .player-container .container-left, .player .player-container .container-right {
  width: 200px;
  height: 473px;
  padding: 10px;
  overflow: auto;
}

.player .player-container .container-left::-webkit-scrollbar, .player .player-container .container-right::-webkit-scrollbar {
  display: none;
}

.player .player-container .container-left p {
  height: 40px;
  padding: 0 10px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player .player-container .container-left p span {
  font-size: 14px;
  width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player .player-container .container-left p .img {
  background: url(../Sass-音乐播放器素材/images/table.png) no-repeat -30px -48px;
  width: 23px;
  height: 17px;
}

.player .player-container .container-left .active {
  background: #e9d6c2;
  color: red;
}

.player .player-container .container-right {
  display: flex;
  flex-direction: column;
}

.player .player-container .container-right h4 {
  margin-bottom: 10px;
  display: inline-block;
}

.player .player-container .container-right .message {
  width: 190px;
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.player .player-container .container-right .message img {
  width: 40px;
  float: left;
  border-radius: 50%;
}

.player .player-container .container-right .message .content {
  width: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  float: right;
}

.player .player-container .container-right .message .content h5 {
  margin-bottom: 5px;
}

.player .player-container .container-right .message .content span {
  color: #859aab;
  font-size: 13px;
  margin-bottom: 10px;
}

.player .player-container .container-middle {
  width: 500px;
  height: 493px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.player .player-container .container-middle > img {
  width: 92px;
  height: 128px;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: rotate(-30deg);
  transform-origin: 11px 11px;
  z-index: 2;
  transition: all 1s;
}

.player .player-container .container-middle .img-animation {
  transform: rotate(0deg);
}

.player .player-container .container-middle .cd {
  width: 254px;
  height: 254px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  transition: all 0.3s;
}

.player .player-container .container-middle .cd > img {
  width: 254px;
  position: absolute;
  top: 0;
  left: 0;
}

.player .player-container .container-middle .cd-animation {
  animation: cdmove 5s linear 0s infinite;
}

.player .player-container .container-middle .paused {
  animation-play-state: paused;
}

.player .player-container .container-middle .title {
  width: 150px;
  height: 40px;
  background: #e9d6c2;
  line-height: 40px;
  text-align: center;
}

.player .player-status {
  width: 900px;
  height: 54px;
  background: #f1f3f4;
  border-radius: 0 0 6px 6px;
}

.player .player-status audio {
  width: 100%;
}

/* 视频 */
.video {
  position: relative;
  z-index: 10;
  display: none;
}

.video video {
  width: 900px;
}

.video img {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 12;
}

@keyframes cdmove {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
